import { Type } from 'class-transformer'
import { IsArray, IsNumber, IsString } from 'class-validator'

export class MapDTO {
  @IsString()
  lat: string

  @IsString()
  lng: string

  @IsString()
  title: string
}

export class MapNearDTO {
  @IsArray()
  @IsString({ each: true })
  center: [string, string]

  @IsNumber()
  @Type(() => Number)
  radius: number
}
